#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<string.h>
#include<math.h>
int main()
{
	int  arr1[26] = { 0 };
	char word[105] = { 0 };
	int i = 0;
	int ret = 0;
	gets(word);
	int length = strlen(word);
 	for (i = 0; i < length; i++)
	{
		arr1[word[i]-97]++;
	}
	int max = 0, min = 100;
	for (i = 0; i < 26; i++)
	{
		if (arr1[i] > max)
		{
			max = arr1[i];
		}
		if (arr1[i] <= min)
		{
			min = arr1[i];
		}
	}
	if (min == 0)
	{
		min = 1;
	}
	int k = max - min;
	for (i = 2; i < k; i++)
	{
		if (k % i == 0 )
		{
			printf("No Answer\n0");
			return 0;
		}
		else
		{
			continue;
		}
	}
	if (k == 0 || k == 1)
	{
		printf("No Answer\n0");
	}
	else if(k==2)
		printf("Lucky Word\n%d",k);
	else
		printf("Lucky Word\n%d", k);
	return 0;
}
